<div id="sidebar-left" class="col-xs-2">
    <ul class="nav main-menu">
        <li ng-repeat="menu in menus" ng-class="{'dropdown' : menu.type == 'toggle'}">
            <a ng-class="{'active-parent active' : menu.isOpen}" ng-click="menuclick(menu)">
                <i class="{{menu.icon}}"></i>
                <span class="hidden-xs">{{menu.name}}</span>
            </a>
            <ul class="dropdown-menu" ng-show="menu.isOpen">
                <li ng-repeat="page in menu.pages">
                    <a ng-click="pageclick(page)">{{page.name}}</a>
                </li>
            </ul>
        </li>
    </ul>
</div>
